package org.tong.dao;

import org.apache.ibatis.annotations.Mapper;
import org.tong.beans.Teacher;

import java.util.List;

@Mapper
public interface TeacherMapper {

    Integer insertTeacher(Teacher teacher);

    Integer deleteTeacherById(Integer id);

    Integer updateTeacherById(Teacher teacher);

    List<Teacher> queryAllTeachers();

    /**
     * 带有一对一映射的查询
     *
     * @param id
     * @return
     */
    Teacher queryTeacherById(Integer id);


    List<Teacher> queryTeacherByParams(Teacher teacher);
}
